Added the ability to delete templates