changed ajax methods