rebind the beforeunload event to make it work again