Adding closed labels to templates