graphview js logic fixes