use correct layout and JavaScripts