add new feature
add onSwitchedListener.When finished switched it will listen a onSwitched
event