remove unused viewProperties
fix bug in selection

(selecting a node, then selecting a link failed)