fix search and index page