added clicking on map functionality