Added ability to provide a custom handler to toggle network activity indicator