managed to run the search functionality