Change event on the label between the onText and the offText to improve usability (fixed version)

This is a new version of #298 refactored as requested.