added settings changed notification and correct way to sync.