added template integration for home page and search results