Edit template and routing