added isVisited and isSelected