 id="showMode" style="position: absolute;right: 10px;color: #777;">' + aceMode + '</span>');
		}

		function format(type) {
			if (type === 'json') {
				val = JSON.parse(editor.getValue());
				editor.setValue(JSON.stringify(val, null, 4));
				editor.getSession().setMode('ace/mode/' + 'json');
				editor.clearSelection();
				editor.navigateFileStart();
			}
		}

		function changeTreeMode() {
		    if (version === '2') {
		        treeMode = 'path';
                alertMessage('Etcd v2 only supports dire