Fixes #189 Popup menu should toggle opened/closed