Add Legendlist function and checkboxes