fixes to webview handling
