errorDialog function
diff --git a/planetstack/templates/admin/dashboard/dashboard_base.html b/planetstack/templates/admin/dashboard/dashboard_base.html
index 2443bbb..8e86b11 100644
--- a/planetstack/templates/admin/dashboard/dashboard_base.html
+++ b/planetstack/templates/admin/dashboard/dashboard_base.html
@@ -62,6 +62,29 @@
     return def.promise();
 }
 
+function errorDialog(title,msg) {
+    var dialog = $('<div>'+msg+'</div>');
+    var def = $.Deferred();
+
+    $(dialog).dialog({
+        resizable: false,
+        title: title,
+        autoOpen: true,
+        modal: true,
+        dialogClass: "dashboard-hpc-sliver",
+        buttons: {
+            'OK': function() {
+                def.resolve();
+                log.debug("Chose to add a sliver");
+                $( this ).dialog( "close" );
+            },
+        },
+        close: {
+        }
+    });
+    return def.promise();
+}
+
 </script>
 {% endblock %}