updated ajax methods