added state maintaince for selected box