Add submenu support to contextmenu