added searching with AJAX