DWG Layer Visibility

hi all,
I have done up a Dynamo script to check all DWGs and allows me to enable/disable layer visibility with the Data-shapes Multi Input Window. Seems to work ok.

My question is though - has anyone been able to find a way to keep the user input selection in the checkboxes after the script is run? - currently, everytime i run the script, its always empty, and i have to remember what i have already checked.
I have thought about using a node listing the differences, and outputing those to a TXT file, which will then popuplate the next UI Window.

If anyone has any improvements to the script, i’d be happy to hear and improve my Dynamo !

Thanks