add a StaticPages Controller
3.1 and 3.2 changes