modularized new function of NavigationHelper