got the loading bar to work. Needed to move it out of the get response