Modify the SettingWindow related codes for MVVM (incomplete)