Refactored ScriptEditor view