Updated ajax methods