Create pages controller and initial layout