some changes in ajax