How to edit or delete a template?