Added submenu support

Including event handling per instance.