cleanups, added progressDialog