adds support for multilevel dropdown menus