added progress bar to dialogs