create a card for editPanel