add front-end views for pages and posts