New class ButtonHandler to redirect button presses to the appropriate
method.