set selection by id