add two-way update for throttle and switch