added a pages controlller