created pages controller