hide some buttons if necessary