Switch to using webNavigation API for event listeners