[MODIFY] abort the ajax request when api hits remaining is 0