Set the selected state in picker