added search functionality on the index page