add toggle class methods in vectorizer
remove array duplicate in ElementView
introduce link snapping