smaller webview client refactoring