added event listeners on marker click and drag