added switch and slider functionality
Merge remote-tracking branch 'origin/master'