Added pages controller
merged branch feature/pages_controller