Merge submenus work

Fixed #15