Adding loading modal to ajax calls