Fix a few things, add pages controller.