Remove unneeded buttons.