small changes in ajax