Fix handling of "false" state values
Refresh menu if necessary on state change