Hide buttons when possible.