add dependencies
check wifi status before HTTP request