added stateOptionChange