undo and redo buttons disabled in shapeEditor