setting up router and basic views