updated flowEditor.js