RPG Skill Tree

I have created a skill tree widget with three buttons. Inside the character BP I have made three custom events that increase health by a set amount and remove one skill point from the total. Inside the widget BP I have the onclicked event for all three buttons connected to one of the three custom events. In the character BP I have an input action that creates a widget of the skill tree, adds it to the viewport, sets the Input mode to UI only and shows mouse cursor. This part works just fine. When the input action key is pressed my skill tree appears on screen and when I click the buttons my health increases.

The issue is removing skill tree from viewport. First I was using a close button that when pressed would remove Skill Tree from parent, set input mode back to game and hide mouse cursor. The skill tree was removed, but the tree was reset each time I opened it. So basically each time I open the skill tree I am just creating anew one instead of the same one being displayed with skills active.

Should I create the widget on event begin play and then use input action to toggle visibility of skill tree or is there a better way to approach this?

Thanks in advance.