change exit event listener