display the checkboxes checked correctly