added legend and info in popup