forgot to add code to respond to navigation event