fixing ui bug with preselected values.