Correctly update nav buttons when navigating