Declared result buttons and created onClickListeners