add logic for select option by index and reset dd