Resolve issue where popups get stuck

Slightly better state tracking of drop downs, and only opening them if
they weren’t already opened.

related to issue #10