Base: Remove popups from DOM when not needed