URCap Program Node creating more than one variable

Hello,

I am trying to develop a Cap that allows the user to create new Variables by clicking on the “+” button seen in the picture below.

The issue I am running into is that creating one variable per instance is fine, but if the user wants to select a previously created variable and wants to change the name of it, it will only change the name of the correlating value saved in the Data Model.

I have it looking like this “model.set(SELECTED_VAR1, variable);”

Is there a way to go through all the variables in the system and be able to change that specific one’s name, just like what is done in the assignment node?

Thanks