add display and displayChildren configuration to menu item