fixed robs code so the webview works in a tab