diff --git a/view/tpl/menuedit.tpl b/view/tpl/menuedit.tpl
index 7fc17471c..0e5df2c47 100644
--- a/view/tpl/menuedit.tpl
+++ b/view/tpl/menuedit.tpl
@@ -1,4 +1,5 @@
{{if $header}}
+
{{if $menu_id}}
+{{if $header}}
+
+{{/if}}
diff --git a/view/tpl/mitemedit.tpl b/view/tpl/mitemedit.tpl
index cdc022c5c..8715d6391 100644
--- a/view/tpl/mitemedit.tpl
+++ b/view/tpl/mitemedit.tpl
@@ -1,37 +1,42 @@
{{if $header}}
-
-
{{$header}}
+
+
+
{{$header}}
+
+{{/if}}
+
+{{if $header}}
{{/if}}
-
diff --git a/view/tpl/mitemlist.tpl b/view/tpl/mitemlist.tpl
index 4e606654f..8686d4204 100644
--- a/view/tpl/mitemlist.tpl
+++ b/view/tpl/mitemlist.tpl
@@ -1,35 +1,34 @@
-
-
-
+
+
+
+
+
+
{{$title}} {{if $menudesc}}{{$menudesc}}{{else}}{{$menuname}}{{/if}}
+
-
{{$title}} {{if $menudesc}}{{$menudesc}}{{else}}{{$menuname}}{{/if}}
-
+
+ {{$create}}
+
+ {{if $mlist }}
+
+
+
+ {{$nametitle}} |
+ {{$targettitle}} |
+ |
+ |
+ |
+
+ {{foreach $mlist as $m }}
+
+ {{$m.mitem_desc}} |
+ {{$m.mitem_link}} |
+ {{if $m.allow_cid || $m.allow_gid || $m.deny_cid || $m.deny_gid}}{{/if}} |
+ |
+ |
+
+ {{/foreach}}
+
+
+ {{/if}}
-
-{{$create}}
-
-{{if $mlist }}
-
-
-
- {{$nametitle}} |
- {{$targettitle}} |
- |
- |
- |
-
- {{foreach $mlist as $m }}
-
- {{$m.mitem_desc}} |
- {{$m.mitem_link}} |
- {{if $m.allow_cid || $m.allow_gid || $m.deny_cid || $m.deny_gid}}{{/if}} |
- |
- |
-
- {{/foreach}}
-
-
-{{/if}}
-
-
-
diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl
index 2964d9c4b..9eac48c6d 100755
--- a/view/tpl/profile_vcard.tpl
+++ b/view/tpl/profile_vcard.tpl
@@ -1,5 +1,5 @@
-
+
{{if $profile.edit}}
@@ -18,7 +18,6 @@
{{$profile.name}}{{if $profile.online}} {{/if}}
{{if $reddress}}
{{$profile.reddress}}
{{/if}}
{{if $pdesc}}
{{$profile.pdesc}}
{{/if}}
-
diff --git a/view/tpl/xchan_vcard.tpl b/view/tpl/xchan_vcard.tpl
index ca0fe76be..2acbb24e4 100755
--- a/view/tpl/xchan_vcard.tpl
+++ b/view/tpl/xchan_vcard.tpl
@@ -1,6 +1,6 @@