created flag buttons