functional search bar works