move checkTypeAndAttribute to functions.php
UI: config editor changed a bit

renderUIConfigEditForm, renderMyPreferences: merged into one
renderConfigEditor

renderConfigVarName: new func
renderUIConfig: use renderConfigVarName