Adjust the interface to UISwitch
Refactoring