finished adding permissions to template pages.