add class to flag