Decouple the page rendering from the controller in a Layout