fix toggling of dropdown