Added support for UISwitch. Not yet fully-working due to infinite loop issue
further changes to switch implementation
Finished initial support for UISwitch