Add groundwork for a button handler.