refactor(dropdownToggle): cleanup code and increase legibility