doing event between undo and redo