Bind to button commands.