adding mouse events for marker