Buttons in dialog box either clear the screen or return to MainActivity