added some ajax stuff