Issue #154: remove state saving for "Ok" button

No need to save the state of the button as the state of checkboxes is
preserved by default - we can count the number of checked boxes to
restore state of the "Ok" button.