remove undo and redo