Using the change active function.

* As the li elements are listed out, even the drop down menu items are being
shown in the list indexes. So, the list index have to be corrected.