building route from sub routes