generate static pages controller