Added loading gif during ajax calls