Add text and event to the button.