added progressDialog