save the info to variable and and set it back on dialog init event