Added search function to top search bar