gets undo/redo buttons to action