adds statechangecancel event