make checkboxes checked if selected='selected'