internet reachability code added with custom alerts