Made the ajax check a filter