add prevent default for stateChange event handling