Saving active button in UI

Hello Everyone,

I have a Ui for different type of furnitures. this Ui has an active button. the color of this is different from the others because I want it to be more visible. The problem is that when I click different button then close the widget and then open it again, The active button comes back to the default one.

I know that the solution for this is saving and loading whenever you exit and reopen the ui but I don’t know what to do yet. Please help.

Thanks everyone and have a great day!