fix routes
add templates and routes