Refactoring code, changes creating popups

One popup is created per call to mPopup at loading. One background only
for all and only one popup visible at a time.