refactored updateFromFieldsAndHidePanel, clone el

so style isn't dropped while editing