refresh group and add template text