added some ajax methods