Register Switch and Slider in View loader.