 		
 		protected var displayWires:Vector.<DWire>;
 		protected var displayModules:Vector.<DModule>;
-		protected var mode:int = MODE_CONNECT;
 		public var viewMode:int = VIEW_MODE_NORMAL;
 		protected var listOpen:int;
 		protected var UIChanged:Boolean;

			}
			
			//put 'em in a list
			moduleList = new ButtonList(125, 5, moduleButtons, function onListClose():void {
				if (listOpen == LIST_MODULES)
					listOpen = LIST_NONE;
				makeUI();

			return null;
		}
		
		
		
		protected function checkMenuState():void {
			undoButton.setExists(canUndo());
