Dropdown integration

and fixed some index.js formatting