Updated trigger for close button