html state switcher update