got search functionality to work