fix togglebutton interaction