updated ajax for search