Improve detail template