set right class for submenu