Fixed the page type load handler to load the type from the page instead of the layout
Updating the layout title when page title updates