main page and search page