remember togglebutton state