Refactored viewPage to just page