Fixed loading gif. Fixed API returning data too early.