currentIndex is now not directly accesible from outside, i.e. can't be mutated by the user