Function withNavigationConfig