create and update template sections