implemented toggle autosync