input checkboxes logic in directive for addEvent, not connected to GRAPH yet