add controller for pages