Refactoring switch types into views.
Adding multilevel switch support via a slider.