began undo and redo