Added a change event on the label between the onText and the offText to improve usability

resolve #296