Separated page views from code