+<%+cbi/valueheader%>
" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self:cfgvalue(section) == self.enabled then %> checked="checked"<% end %> value="1" />
-
<%=self.description%>
-
-
- <% if #self.deps > 0 then %><% end %>
\ No newline at end of file
+<%+cbi/valuefooter%>
\ No newline at end of file
diff --git a/src/ffluci/view/cbi/lvalue.htm b/src/ffluci/view/cbi/lvalue.htm
index 943a18886a..f1ae5a0939 100644
--- a/src/ffluci/view/cbi/lvalue.htm
+++ b/src/ffluci/view/cbi/lvalue.htm
@@ -1,6 +1,4 @@
-
">
-
<%=self.title%>
-
+<%+cbi/valueheader%>
<% if self.widget == "select" then %>
-
- <% if #self.deps > 0 then %><% end %>
\ No newline at end of file
+<%+cbi/valuefooter%>
\ No newline at end of file
diff --git a/src/ffluci/view/cbi/mvalue.htm b/src/ffluci/view/cbi/mvalue.htm
index 7becb4f48b..97a1c4295a 100644
--- a/src/ffluci/view/cbi/mvalue.htm
+++ b/src/ffluci/view/cbi/mvalue.htm
@@ -1,9 +1,7 @@
<%
local v = self:valuelist(section)
%>
-
">
-
<%=self.title%>
-
+<%+cbi/valueheader%>
<% if self.widget == "select" then %>
-
- <% if #self.deps > 0 then %><% end %>
\ No newline at end of file
+<%+cbi/valuefooter%>
\ No newline at end of file
diff --git a/src/ffluci/view/cbi/nsection.htm b/src/ffluci/view/cbi/nsection.htm
index 90dbb30414..9c54a99429 100644
--- a/src/ffluci/view/cbi/nsection.htm
+++ b/src/ffluci/view/cbi/nsection.htm
@@ -1,32 +1,12 @@
-<% if self:cfgvalue(self.section) then %>
-
+<% if self:cfgvalue(self.section) then
+section = self.section %>
+
<% end %>
-
-
+<% section = k %>
+<%+cbi/ucisection%>
<% end %>
<% if self.addremove then %>
-
- <% if self.anonymous then %>
-
- <% else %>
-
- <% end %><% if self.err_invalid then %>
<%:cbi_invalid Fehler: Ungültige Eingabe%>
<% end %>
-
+
+ <% if self.anonymous then %>
+
+ <% else %>
+
+ <% end %><% if self.err_invalid then %>
<%:cbi_invalid Fehler: Ungültige Eingabe%>
<% end %>
+
<% end %>
diff --git a/src/ffluci/view/cbi/ucisection.htm b/src/ffluci/view/cbi/ucisection.htm
new file mode 100644
index 0000000000..ef1b6cb0e1
--- /dev/null
+++ b/src/ffluci/view/cbi/ucisection.htm
@@ -0,0 +1,23 @@
+
+
\ No newline at end of file
diff --git a/src/ffluci/view/cbi/value.htm b/src/ffluci/view/cbi/value.htm
index d027bb4489..b994790d27 100644
--- a/src/ffluci/view/cbi/value.htm
+++ b/src/ffluci/view/cbi/value.htm
@@ -1,12 +1,3 @@
-
">
-
<%=self.title%>
-
+<%+cbi/valueheader%>
size="<%=self.size%>" <% end %><% if self.maxlength then %>maxlength="<%=self.maxlength%>" <% end %>name="cbid.<%=self.config.."."..section.."."..self.option%>" value="<%=(self:cfgvalue(section) or "")%>" />
-
<%=self.description%>
-
- <% if self.tag_invalid[section] then %>
<%:cbi_invalid Fehler: Ungültige Eingabe%>
<% end %>
-
- <% if #self.deps > 0 then %><% end %>
+<%+cbi/valuefooter%>
diff --git a/src/ffluci/view/cbi/valuefooter.htm b/src/ffluci/view/cbi/valuefooter.htm
new file mode 100644
index 0000000000..3f92f09e26
--- /dev/null
+++ b/src/ffluci/view/cbi/valuefooter.htm
@@ -0,0 +1,8 @@
+
<%=self.description%>
+
+ <% if self.tag_invalid[section] then %>
<%:cbi_invalid Fehler: Ungültige Eingabe%>
<% end %>
+
+ <% if #self.deps > 0 then %><% end %>
\ No newline at end of file
diff --git a/src/ffluci/view/cbi/valueheader.htm b/src/ffluci/view/cbi/valueheader.htm
new file mode 100644
index 0000000000..86c782d711
--- /dev/null
+++ b/src/ffluci/view/cbi/valueheader.htm
@@ -0,0 +1,3 @@
+