made the search action ajax