generate static controller