diff --git a/console/templates/console-base.html b/console/templates/console-base.html
new file mode 100644
index 0000000..d0e0e7a
--- /dev/null
+++ b/console/templates/console-base.html
@@ -0,0 +1,127 @@
+{% load i18n %}
+
+
+
+
+
+
+
+
+
+
+{% block head %}{% endblock %}
+
+
+
+
+
+
+{% block content %}{% endblock %}
+
+
+
+
+
+
+{% block foot %}{% endblock %}
+
+
diff --git a/console/templates/console-spice.html b/console/templates/console-spice.html
index 4704ef3..1a1cbf8 100644
--- a/console/templates/console-spice.html
+++ b/console/templates/console-spice.html
@@ -1,333 +1,194 @@
+{% extends "console-base.html" %}
{% load i18n %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+{% load staticfiles %}
+{% block head %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+ }
-
-
-
+ var password = '{{ console_passwd }}';
+ log_info('Connecting ...');
+ connect(uri,password);
+
+{% endblock %}
diff --git a/console/templates/console-vnc.html b/console/templates/console-vnc.html
index 59d0afa..b0a3334 100644
--- a/console/templates/console-vnc.html
+++ b/console/templates/console-vnc.html
@@ -1,48 +1,37 @@
+{% extends "console-base.html" %}
{% load i18n %}
-
-
-
-
-
-
-
-
-
-
+{% endblock %}
+
+{% block navbarmenu %}
+
+
{% trans "Show Keyboad" %}
+{% endblock %}
+
+{% block content %}
+
-
+
+
+
+
+
+
+{% endblock %}
+
+{% block foot %}
-
-
+{% endblock %}