Fixed navigation bar to update active tab when switching