diff --git a/circle/dashboard/static/dashboard/dashboard.js b/circle/dashboard/static/dashboard/dashboard.js
index 4e75d3c..443b843 100644
--- a/circle/dashboard/static/dashboard/dashboard.js
+++ b/circle/dashboard/static/dashboard/dashboard.js
@@ -20,7 +20,7 @@ $(function () {
     return false;
   });
 
-  $('.group-create, .node-create, .tx-tpl-ownership, .group-delete, .node-delete, .disk-remove, .template-delete, .delete-from-group').click(function(e) {
+  $('.group-create, .node-create, .tx-tpl-ownership, .group-delete, .node-delete, .disk-remove, .template-delete, .delete-from-group, .lease-delete').click(function(e) {
     $.ajax({
       type: 'GET',
       url: $(this).prop('href'),
diff --git a/circle/dashboard/templates/dashboard/template-edit.html b/circle/dashboard/templates/dashboard/template-edit.html
index 83b7f06..c5502db 100644
--- a/circle/dashboard/templates/dashboard/template-edit.html
+++ b/circle/dashboard/templates/dashboard/template-edit.html
@@ -72,7 +72,7 @@
     <div class="panel panel-default">
       <div class="panel-heading">
         <a href="{% url "dashboard.views.template-delete" pk=object.pk %}" 
-         class="btn btn-xs btn-danger pull-right">
+         class="btn btn-xs btn-danger pull-right template-delete">
           {% trans "Delete" %}
         </a>
         <h4 class="no-margin"><i class="fa fa-times"></i> {% trans "Delete template"  %}</h4>