improve code
update VectorEditor