clean router and adjust tempaltes