refactor index_page to not render in the helper