fixed bug where navigation bar wasn't updating