adding flags active class