Separate toggle logic from the dropdown plugin and overwrite the hide(),
show() and toggle() methods to modify the element class names.