 		 */				
 		public static function drawFunction(e:ContextMenuEvent):void
 		{
-			var penTool:PenMouse = Weave.root.requestObject(PEN_OBJECT_NAME, PenMouse, false ) as PenMouse;
+			var linkableContainer:ILinkableContainer = getLinkableContainer(e.mouseTarget);
+			
+			if ( linkableContainer )
+				var penTool:PenMouse = linkableContainer.getLinkableChildren().requestObject(PEN_OBJECT_NAME, PenMouse,false);
 			if( _penToolMenuItem.caption == ENABLE_PEN )
 			{
 				// enable pen

				
				_penToolMenuItem.caption = ENABLE_PEN;
			}
		}
		
		/**

				penTool.editMode = true;
				_penToolMenuItem.caption = DISABLE_PEN;
				_removeDrawingsMenuItem.enabled = true;
				CustomCursorManager.showCursor(CustomCursorManager.PEN_CURSOR, CursorManagerPriority.HIGH, -3, -22);
			}
			else
			{
