list.onOptionSelected passes index and text of the selected row