update template for post