updating how the navigation is built