create pages controller