Updated templatedetail