diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
index b0506365dfdcff47890ccb0dddece019aafa7f10..ab00499518f63ae4c09cd37190053c71b41cb409 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
@@ -116,8 +116,10 @@ function fixLeftRightHeight(){\n
   }\n
 }\n
 \n
-function fixLeftRightHeightAndFocus() {  \n
-  fixLeftRightHeight();\n
+function fixLeftRightHeightAndFocus(fix_height) {\n
+  if (fix_height == 1) {\n
+    fixLeftRightHeight();\n
+  }\n
   autoFocus();\n
 }
 
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
index 165d03774238419f4c85cd3fad9f56b4876a8f29..4046267e9b5f71cbb5693c34e7dbb74e70bb27c2 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
@@ -94,7 +94,7 @@ IDEAS:\n
     <base tal:attributes="href python: \'%s/\' % (url, )"/>\n
     <meta name="generator" content="ERP5"/>\n
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n
-    <title tal:content="title | string:ERP5"/>\n
+    <title tal:content="python: \'%s | %s\' % (here.getTitle() or here.getId(), here.getPortalObject().getTitle() or here.getPortalObject().getId())"/>\n
     <tal:block tal:repeat="css css_list">\n
       <link tal:attributes="href css" type="text/css" rel="stylesheet"/>\n
     </tal:block>\n
@@ -105,7 +105,7 @@ IDEAS:\n
       <script tal:attributes="src js" type="text/javascript"></script>\n
     </tal:block>\n
   </head>\n
-  <body onload="fixLeftRightHeight()">\n
+  <body tal:attributes="onload python:\'fixLeftRightHeightAndFocus(%s)\' % int(not is_web_mode)">\n
     <form id="main_form"\n
           tal:attributes="enctype form/Form_getEnctype | nothing;\n
                           action url;\n
@@ -116,6 +116,7 @@ IDEAS:\n
              id="hidden_button" type="submit" value="dummy"\n
              tal:attributes="name python: \'%s:method\' % (form_action, )" />\n
       <tal:block metal:use-macro="global_definitions_macros/http_definitions"/>\n
+      <tal:block metal:define-slot="layout">\n
       <div id="bars">\n
         <div id="main_bar"\n
              tal:content="structure here/ERP5Site_renderCachedNavigationBox">\n
@@ -144,6 +145,7 @@ IDEAS:\n
       <div id="master">\n
         <tal:block metal:define-slot="main"/>\n
       </div>\n
+      </tal:block>\n
     </form>\n
   </body>\n
 </html>\n