Triggering a global event when a poplin is closed