Taking Guangbo's advice, assigned an execute method to buttons in the layout.