Added progress dialog to MainActivity for submission of data.