updated flowEditor to delete flows