Selection group- going back to previous selected

The situation is like this.
I have a trigger that “calls” a window to the front, on that window you can press a button that continues the flow or press “cancel” button to go back.
my problem is that i need to be able to pop this window from any of my 9 states DP. I can put the window outside of the DP but when i press the cancel button I need to revert the selection from a certain selection group to the last one from which the user came from.
Is there any way to do it?

hopefully I explained myself properly.
thank you

It might help to post your .rp file. You could set a global variable when you invoke the popup, then when you hit the cancel button, check the global variable and use that to revert the DP to the correct state. But I may have misunderstood what you were asking.