Added JS to ensure active tab selected after routing