UI: Enable multiple onbeforeunload events