Adds a setting function to avoid repetitive if-else statements
Removes repeated callback in toggle
Merge pull request #1 from tessel/jon-cb

Jon cb