change the navigation method