starting search functionality