added activation of links when switching between tabs