The "no" option on dialog box goes back to main activity.