Added undo redo for moving a figure