legend clickable. TODO: backend refactor