The checkboxes fo for the legend are now working. But they dont do anything for the filter yet.