refactor index dropdowns