Adding onClick to the check box so that it works with the new way of
getting selected rows.