set active tab during navigation