Adds loading indicator for ajax calls