hide entity menu if user click anywhere on the opened document