cytoscape legend fix and refactor #3435
Merge pull request #3483 from WormBase/246-cytoscape-legend

cytoscape legend fix and refactor #3435