added search function to index page