Integrate web service and network status changed function