rework ToggleButton so that it handles creation of ToggleNode