fixed the ajax filter and search query