add event listener for connection id