fixed ajax calls to handle when no results are found