mark the elements currently shown in the viewport as active in the navigation