Changed index key from complex object to integer.
small bug discovered relating to toggled nodes not being registered as active