pages controller, views and added scope to page model