Undo/redo for frame creation/deletion