We'll need to remove this event listener when the page is destroyed.