set enabled for button