Metric Popup Flicker

The show/hide approach in previous commit caused the
metric popup to flicker. So we now only create the popup
when we know we want to show.