added filtering by the checkboxes