modified "wait dialog"