When players from one team feel that they should have gotten a free kick but they did not, only to give away a free kick to their opponent a few seconds after, referees must recognize that there may be some emotional outburst or frustration expressed by some players. Simply calling fouls would not be enough to manage these players. Be proactive and preventative. Increase your presence around the foul spot. Show to the players that you are in charge.
In the video below, the referee’s decisions (no foul and then a foul) appear correct. But he did not recognize the level of frustration among the players in white.