Added a button handler.