Updated the control of a page type when setting the layout or loading a page