Hide buttons properly.