renamed legend to label to comply with HTML