Renamed selectedCommandIndex