diff --git a/src/main/resources/templates/ExceptionMappers/error.html b/src/main/resources/templates/ExceptionMappers/error.html
index 4eea55e..3de31f8 100644
--- a/src/main/resources/templates/ExceptionMappers/error.html
+++ b/src/main/resources/templates/ExceptionMappers/error.html
@@ -1,77 +1,16 @@
-
-
-
-
-
Error
-
{response.error}
-
+{#include base}
+{#title}Error{/title}
+
+
+
+
+
+
Error
+
{response.error}
+
+
+
+
+
-
-
+{/include}
diff --git a/src/main/resources/templates/OAuthResource/loginSuccess.html b/src/main/resources/templates/OAuthResource/loginSuccess.html
index ad45367..ba7ab57 100644
--- a/src/main/resources/templates/OAuthResource/loginSuccess.html
+++ b/src/main/resources/templates/OAuthResource/loginSuccess.html
@@ -1,76 +1,15 @@
-
-
-
-
-
-
Login Page
-
-
-
-
-
Successful login
-
You may close this window
+{#include base}
+{#title}Login successful{/title}
+
+
+
+
+
+ Successful login
+
You may now close this window
+
+
+
+
-
-
+{/include}