add utility function for network activity indicator on status bar

fix some problem on #2706