add edit button to details template