changed formatting in order to have a loading gif
added a loading gif to display each time the page requests a resource