Register undo/redo buttons.