adding router and main view