fixed the way the loading gif is displayed