added modal loading gif on ajax call