edit to CardDetailsPanel, adding a card