switched index and page, and gave them names so that they could be used
as templates