fix template stuff so that the page is working again