added a loading gif
made sure url loading works properly