use the navigate functions in all templates