display a loading icon in top bar while processing ajax requests