ajax methods update