code clean
fixed switch-over action by scope. to trigger data sync