added caching in ajax