Add edit button to card detail template