Refactor how the progress dialogs are shown