added listener for intersection