building router and views