Hide buttons when match is found