Generating controller for static pages