added a pages controller