added AJAX to search functionality