make sync_enabled a toggle button