created error and wait dialogs