improved responsiveness of close button in popup