page view code