Adding pages controller.