couldn't get automatic closing of webview at the end. oh well