added block to avoid to change the active language
fixed refresh languages navigation list
refactoring
enabled the control to disable a javascript code inside a script tag when the edit mode is active and added unit test