Add router and pages.