toggle the disabled attribute of buttons