update selected callback