updating detail templates