removed alert message when window leaves