fix bad ajax methods