added navigation event handler