Controller for pages