add navigation function.