update Component.routes structure