add template and route