moving webview updates to the UI thread