added connection detector.
checking internet status