Undo/redo is working properly