add ability to add links to legend