Change the dialog to appear in the MainActivity class.