Hide irrelevant buttons.