implement the choose tag.