update template for flat pages