updating index and drop down