check for internet connectivity before loading. Hide webview until page is loaded