add titles to templates