added a check for not displaying context menu for topbar elements in file manager