added legend and initial popup
fixed url