added ProgressDialog as classmembers so they can be better cleaned with .dismiss()