update the navbar