Added dialog for wifi detection.