ajax works and calls all the right stuff