Rewrite appstore opening to work better with new webview features