example of adding undo-redo operation