Changed dialog to progressDialog and removed old dialog layout