using router.navigate() to update urls