code function manage config (general and layout)