Adding pages controller