Defined the buttons in onCreate and implemented basic listeners