Popup, background and nbsp fixes