fixed a few bugs with ProgressDialog being gone