Move Router to separate file, and load it before the map
Move Router to separate file, and load it before the map