Disable buttons when they can't be used