For those who haven’t developed a strong foundation of non-attachment and detachment, then whenever they feel that their minds are disturbed by something, they can try to divert the attention of the mind away from what it thinks is troubling it, by focusing on something else. It can be anything that draws the interest of the mind, like watching a movie that they like to watch, or doing some form of mental or physical activities that they like.
But this is only a momentary relief for the mind to stop thinking about what is troubling it, to stop feeding these thinking, and eventually let these thoughts to eventually die out by themselves. The mind might sway back and forth between different attentions, swaying back and forth between happiness and unhappiness, being restless. It also won’t guarantee that the mind won’t be disturbed by the same kind of names and forms again, or be disturbed by some other kinds of names and forms. The mind will be forever restless, no peace.
For those who have developed a strong foundation of non-attachment, their minds won’t be disturbed by anything. They just let all the perceptions of names and forms to come and go as they are, from moment to moment.
For those who haven’t developed a strong foundation of non-attachment, occasionally their minds might generate attachment towards some names and forms, and be disturbed by these names and forms, but they know what is detachment or how to let go. They are aware of this disturbance in the mind and they are able to observe the disturbed state of the mind without generate judgment or expectation, just accept the reality as it is that the mind is disturbed in this present moment now, have self-control not being over-powered by the disturbed state of the mind to perform actions and speech that will generate more disturbance in oneself or into the surrounding environment. They don’t need to runaway from or ignore the disturbance in the mind by diverting the attention of the mind onto something else. But they observe without being determined or over-powered by the state of the mind, and allow the disturbed state of the mind to pass-away eventually.
Keep practice. Strengthening the practice of non-attachment and detachment.