Dynamic activation of navbar elements.