[ChoiceBox] add option to use 'text' variable instead of 'title', and small code optimisation.