initial search functionality