wait until WIFI is connected