undo and redo commands are done