changed ajax stuff