Adding unique IDs to menu and submenu entries.

Unique IDs are crucial for proper UI automation.