modified the LayoutView so that we can construct it giving it the page title