updating navigation method