also close the popup when the user clicks