fix bug in progress dialog/fragment et al by using a progress bar.