Added callbacks for onClick and onChange events

Added callbacks for onClick and onChange events, namely:

onClick: clicked on element
onChangeOn: changed element into checked state
onChangeOff: changed element into unchecked state

Hope you consider this as useful.