added event listener that makes a clicked location into current location