function delete, template-delete button outside of form