Refactor the on change chanined toggle buttons to its own function.
Refactor the on change chanined toggle buttons to its own function.

This kind of button is not used anywhere in Melange. It just exists
to showcase the functionality.

rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son