Slightly modified loading listener for webview