use on-selected to select only one entry at time