display details of card in modal