Undo and redo is working