Add undo and redo buttons.