templates auto populate categories