Fix issue with pagetemplate not existing.
Reformat pageview