Added checking of checkboxes inside event listener for button one.