added search functionality to main page