edit pages to make template work