Fixed a router reference in main view