fixed up legends, added date display to popup on mouse-click in map