check if network is available on each press of the reload button