ensure the close icon node is the click event target