add pin function and reserve event from map function