pages controller made