Store selectedItem instead of selectedItemIdx