Set up checkboxes and filter function.