Added control of the enabled state for the 'Check' button.