save after undo/redo