changing a few ajax calls