search functionality now works