add redo and undo of editing node