Refactor the PageViewHelper