Added timeout handling to WebView