fixed issues and added ProgressDialog on hosting