Button binding for undo and redo