This reverts commit 97d4f7e07462cbc33e8ebf0bc2bbf8a17c232d50, which appears to be incomplete: CHECK_BUTTON is not defined anywhere.