moved topology view legend to its own svg element