Close popup when it is clicked.