In sample app, automatically change the active menu item as user navigates.