fixed checkboxes, since it was updating the wrong item just using the id