Assigned the buttons and text box