adding a pages controller