Dialogs save their states after OK