widget demo: add logical control.