added unload event listener