Fixes problems in preference state sharing

Using only Boolean, and correctly starting the toggle handler listener.