data swapping on map click on compare page