added new method configureReachablity to detect the network status