wrap ui-dropdown code and html into components