add init method to webview