- added loading bar every time a ajax request is made