update navigation bar.