Closing menus?

Hi! Check my answer in this tread seems it’s relevant