checkboxes implementation fix