added routes, and pages controller