fix menu creation for dynamic routes

do not add submenu for dynamic routes