error in selectEdgeOnClickHandler fixed