moved commit on views so that they are updated prior to stateChangeSucess