note dialog saving state