better switch sync protocol
remove unused event in PreferencesDialog
better sync protocol settings management