changes to support the menu command in nodes.