Fix for close button in confirmation dialog not working