implementing activation of tab from browser history for tabs with custom ids