added loading icon on ajax calls