update active tab of nav bar