the active element of the ui should be monitored by the state. which state variables would fit well for this purpose?