add selected as a control attribute