added wait dialogs