update template so leads and cm counts are not nested