I think it makes more sense to have the UI toggle in the control bar and embed the popup in there too (like the captions interface elements).