Finish undo-redo feature