function for choose in popo up