Update to use php templates for pages