Bug: Fix navigation

Fix cases where first item added via addSubMenu got deleted.
Add modal dialog for alerts