Disable nonfunctional buttons.