Deal with submenu automatical