diff --git a/html/themes/default/plugin.css b/html/themes/default/plugin.css
index 8f49e9ae6fcf9a9eab7259c21c02cfd0546b54ae..d7fedce90f6a5df81c3942be1aa5fe804e08b557 100644
--- a/html/themes/default/plugin.css
+++ b/html/themes/default/plugin.css
@@ -170,6 +170,10 @@ margin-bottom:0.5%;
 margin-right:0.5%;
 }
 
+html.ltr .plugin_section.invisible, html.rtl .plugin_section.invisible {
+display:none;
+}
+
 fieldset.plugin_section.critical legend span, .plugin_section.critical > span.legend {
 font-weight:bold;
 background-color:#BCF;
@@ -194,7 +198,9 @@ background-color:#DFEFFF;
   .plugin_section > div > table {
   width:100%;
   }
-  .plugin_section, .plugin_section:nth-child(even), .plugin_section.fullwidth {
+  html.ltr .plugin_section, html.ltr .plugin_section:nth-child(even), html.ltr .plugin_section.fullwidth,
+  html.rtl .plugin_section, html.rtl .plugin_section:nth-child(even), html.rtl .plugin_section.fullwidth
+  {
   display:block;
   float:none;
   clear:both;
diff --git a/html/themes/default/setup.css b/html/themes/default/setup.css
index e9a2b5774f1ebd8c905be93ad8ecff01b0763187..299570324e4e7765a39d618033c695468a49f566 100644
--- a/html/themes/default/setup.css
+++ b/html/themes/default/setup.css
@@ -1,6 +1,15 @@
 /*********
  * Setup
  *********/
+body.setup a.plugtop img {
+height:48px;
+}
+html.ltr body.setup div#header_left .plugtop {
+margin-left:80px;
+}
+html.rtl body.setup div#header_left .plugtop {
+margin-right:80px;
+}
 
 div.setup_menu {
 background-color:#F8F8F8;
@@ -162,3 +171,16 @@ padding-left:25px;
 html.rtl div.step2_warning_text {
 padding-right:25px;
 }
+
+/* On small screens */
+@media (max-width: 640px) {
+  body.setup a.plugtop img {
+  height:32px;
+  }
+  html.ltr body.setup div#header_left .plugtop {
+  margin-left:0px;
+  }
+  html.rtl body.setup div#header_left .plugtop {
+  margin-right:0px;
+  }
+}
diff --git a/plugins/config/class_configInLdap.inc b/plugins/config/class_configInLdap.inc
index 7bf7274112acd81c22ebb3039c05e669b9713be6..461e01e673ffd01c314d8cc65346776193f21d61 100644
--- a/plugins/config/class_configInLdap.inc
+++ b/plugins/config/class_configInLdap.inc
@@ -241,60 +241,6 @@ class configInLdap extends simplePlugin
           ),
         )
       ),
-      'miscellaneous' => array(
-        'name'  => _('Miscellaneous'),
-        'class' => array('fullwidth'),
-        'attrs' => array(
-          new OrderedArrayAttribute (
-            new CompositeAttribute (
-              _('Hooks that are called when specific actions happens'),
-              'fdTabHook',
-              array(
-                new SelectAttribute(
-                  _('tab'), _('The tab that this hook concerns'),
-                  'hookTab', TRUE,
-                  $plugins
-                ),
-                new SelectAttribute(
-                  _('mode'), _('When to call this command'),
-                  'hookMode', TRUE,
-                  array('postcreate', 'postremove', 'postmodify',
-                        'precreate', 'preremove', 'premodify', 'check')
-                ),
-                new StringAttribute(
-                  _('cmd'), _('The command that will be called'),
-                  'hookCmd', TRUE
-                )
-              ),
-              '/^([^\\|]+)\\|([^\\|]+)\\|(.*)$/',
-              '%s|%s|%s',
-              '', // acl
-              _('Hooks')
-            ),
-            FALSE, // non-ordered
-            array(),
-            TRUE // edition
-          ),
-          new BooleanAttribute (
-            _('Display hook output'),
-            _('When enabled successful hook execution output is displayed to the user using a dialog.'),
-            'fdDisplayHookOutput'
-          ),
-          new SetAttribute(
-            new StringAttribute (
-              _('Available shells'), _('Available POSIX shells for FD users.'),
-              'fdShells', FALSE
-            ),
-            array('/bin/ash','/bin/bash','/bin/csh','/bin/sh','/bin/ksh',
-                  '/bin/tcsh','/bin/dash','/bin/zsh')
-          ),
-          new BooleanAttribute (
-            _('Show ACL tab on all objects'),
-            _('For very specific ACL rights setting where you might need to give right on a single object.'),
-            'fdAclTabOnObjects'
-          ),
-        )
-      ),
       'people_and_group' => array(
         'name'  => _('People and group storage'),
         'class' => array('critical'),
@@ -420,6 +366,60 @@ class configInLdap extends simplePlugin
           ),
         )
       ),
+      'miscellaneous' => array(
+        'name'  => _('Miscellaneous'),
+        'class' => array('fullwidth'),
+        'attrs' => array(
+          new OrderedArrayAttribute (
+            new CompositeAttribute (
+              _('Hooks that are called when specific actions happens'),
+              'fdTabHook',
+              array(
+                new SelectAttribute(
+                  _('tab'), _('The tab that this hook concerns'),
+                  'hookTab', TRUE,
+                  $plugins
+                ),
+                new SelectAttribute(
+                  _('mode'), _('When to call this command'),
+                  'hookMode', TRUE,
+                  array('postcreate', 'postremove', 'postmodify',
+                        'precreate', 'preremove', 'premodify', 'check')
+                ),
+                new StringAttribute(
+                  _('cmd'), _('The command that will be called'),
+                  'hookCmd', TRUE
+                )
+              ),
+              '/^([^\\|]+)\\|([^\\|]+)\\|(.*)$/',
+              '%s|%s|%s',
+              '', // acl
+              _('Hooks')
+            ),
+            FALSE, // non-ordered
+            array(),
+            TRUE // edition
+          ),
+          new BooleanAttribute (
+            _('Display hook output'),
+            _('When enabled successful hook execution output is displayed to the user using a dialog.'),
+            'fdDisplayHookOutput'
+          ),
+          new SetAttribute(
+            new StringAttribute (
+              _('Available shells'), _('Available POSIX shells for FD users.'),
+              'fdShells', FALSE
+            ),
+            array('/bin/ash','/bin/bash','/bin/csh','/bin/sh','/bin/ksh',
+                  '/bin/tcsh','/bin/dash','/bin/zsh')
+          ),
+          new BooleanAttribute (
+            _('Show ACL tab on all objects'),
+            _('For very specific ACL rights setting where you might need to give right on a single object.'),
+            'fdAclTabOnObjects'
+          ),
+        )
+      ),
     );
   }
 
diff --git a/setup/class_setupStep_Config.inc b/setup/class_setupStep_Config.inc
index ce942fc8013db2daeef77d2a01854ce5dbd22526..07943c1b32c157414f663e0626aed903bf96dfba 100644
--- a/setup/class_setupStep_Config.inc
+++ b/setup/class_setupStep_Config.inc
@@ -52,6 +52,9 @@ class Step_Config extends configInLdap
     global $config;
     parent::__construct($config, CONFIGRDN.$config->current['BASE']);
 
+    $this->attributesInfo['miscellaneous']['class'] = array('invisible');
+    $this->attributesInfo['debug']['class'] = array('invisible');
+
     $this->fdLanguage     = $cv['lang_selected'];
   }
 
diff --git a/setup/setup_frame.tpl b/setup/setup_frame.tpl
index 2d9f8e33aefa46ad6a7e8d0518ac1a5fd35618cc..5659e7796c432189a2d3c85606a3e92142771702 100644
--- a/setup/setup_frame.tpl
+++ b/setup/setup_frame.tpl
@@ -1,5 +1,5 @@
 <!-- Headline -->
-<body>
+<body class="setup">
   {$php_errors}
   <form action="setup.php" name="mainform" id="mainform" method="post" enctype="multipart/form-data">
     <div class="setup_header">