changed network status function