Added Check for Webview visibility