Add the controller of pages

Add the controller of pages