Maintain selectedItem and handle out of bounds when switching models.