Changes in AJAX responses and improve cache function
Fix ajax