add router and update template