Fixed webview and added connection check on main.