button popup on card

I have began using cards.  I have two buttons on each card.  The first goes to a url and the second is to a popup edit screen.  When I press on the 2nd or 3rd button it always uses the first card.  How do I get the buttons to use the correct card?

You can create a model just for your edit component. Put a condition on it of ID = specific value and leave the value blank. Set the condition to filterable default on. Then, in your button actions, add a couple steps: 1) activate and set value of the condition to ID 2) query your edit model 3) open the pop up window. Make sure the field editor in your pop up is set to the new model you created.

Another option is to add a context condition on your button set component