improve ssl check in webview