factor out window/webview responsibilities and make button to swap which screen the native webview is on