make submenu works