Improve detail template with form