minor fixes for tree item context menu