add dialog wait util