Fix activity indicator counts and support delegating the webView and view controllers events.