correct ajax methods