clean up stateController