Add progress bar to dialogs