can update the state of webview.