re-edit template collapse