device view fix togglebutton desactivation