Added a pages controler