now displays data corresponding to the checkboxes selected