fix tab selection and breadcrumbing