filters selected directive printing selected checkboxes