Updates the navbar.