public String view(@PathVariable Long pageId, Model model, HttpServletRequest request) {
User user = userService.getAuthenticatedUser();
logger.debug("attempting to get pageId {} for {}", pageId, user);
List<Page> pages = getAllPagesForAuthenticatedUser();
Page page = pageService.getPageFromList(pageId, pages);
List<PageLayout> pageLayouts = pageLayoutService.getAllUserSelectable();
addAttributesToModel(model, page, pages, pageLayouts);
return ControllerUtils.getDeviceAppropriateView(request, ViewNames.getPageView(page.getPageLayout().getCode()), ViewNames.MOBILE_HOME);
}