Added SettingsChanged event handler