Updated the ajax functionality for kalatheme