Added loading gif for async calls and they are made before the view loads