init remember window state checkbox in settings window.