Disable and then enable buttons.