add wait on dialog