 			{
 				// disable pen
 				penTool.editMode = false;
-				penTool.penEnabled.value = false;
 				
 				_penToolMenuItem.caption = ENABLE_PEN;
 			}

				removeEventListener(MouseEvent.MOUSE_MOVE, handleMouseMove );
				
				CustomCursorManager.removeAllCursors();
				penEnabled.value = false;
			}
			invalidateDisplayList();
		}

		}
		
		public var drawing:Boolean = false;
		public const coords:LinkableString = newLinkableChild( this, LinkableString, handleCoordsChange ); //This is used for sessiong all of the coordinates.
		public const lineWidth:LinkableNumber = newLinkableChild( this, LinkableNumber, invalidateDisplayList ); //Allows user to change the size of the line.
		public const lineColor:LinkableNumber = newLinkableChild( this, LinkableNumber, invalidateDisplayList ); //Allows the user to change the color of the line.
		private var _coordsArrays:Array = []; // parsed from coords LinkableString
		public const _editMode:LinkableBoolean = newLinkableChild( this, LinkableBoolean, handleEditModeChange );; // true when editing
		
		public function handleEditModeChange():void
		{
			if( _editMode.value == true )
				editMode = true;
			else
				editMode = false;
		}
		
		public function get editMode():Boolean
		{
			return _editMode.value;
		}
		public function set editMode(value:Boolean):void
		{
			if (_editMode.value == value)
				return;
			
			_editMode.value = value;
			
			if (value)
			{
