Added Undo Redo for resizable items