added network indicator that checks whether the network is up or down