Add /template delete and fix templates