moved doReset() and processWIDChange() down into the STATE GOVERNING function section.