generate controller for static pages