corrects the editable variable saves by counting for all the checkboxes on the page