diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..fed64f1
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,26 @@
+
+
+
+ {% block head %}
+
+
+
+
+
+ {% block title %}
+ {% endblock title %}
+
+
+ {% endblock head %}
+
+
+ {% block content %}
+ {% endblock content %}
+
+
+
diff --git a/templates/error.html b/templates/error.html
index 01b85ff..a527650 100644
--- a/templates/error.html
+++ b/templates/error.html
@@ -1,19 +1,10 @@
-
-
-
-
-
- {{ title }}
-
-
-
-
-
-
+{% extends "base.html" %}
+{% block title %}
+ Internal Error
+{% endblock title %}
+{% block head %}
+ {{ super() }}
+{% endblock head %}
+{% block content %}
+ Internal Error
+{% endblock content %}
diff --git a/templates/home.html b/templates/home.html
index f6dd9c1..bb9313b 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -1,25 +1,16 @@
-
-
-
-
-
- {{ title }}
-
-
-
-
-
+{% extends "base.html" %}
+{% block title %}
+ Mail management
+{% endblock title %}
+{% block head %}
+ {{ super() }}
+{% endblock head %}
+{% block content %}
+
Mail management
Mails
- {% for mail in mails %}
- - {{mail.mail}}
- {% endfor %}
+ {% for mail in mails %}- {{ mail.mail }}
{% endfor %}
-
-
-
-
+
+{% endblock content %}
diff --git a/templates/not_found.html b/templates/not_found.html
index 680894b..2098756 100644
--- a/templates/not_found.html
+++ b/templates/not_found.html
@@ -1,19 +1,10 @@
-
-
-
-
-
- {{ title }}
-
-
-
-
-
-
+{% extends "base.html" %}
+{% block title %}
+ Page not found
+{% endblock title %}
+{% block head %}
+ {{ super() }}
+{% endblock head %}
+{% block content %}
+ Page not found
+{% endblock content %}