Exert better control over the ajax calls