set the routes of navbar using mg-view