Add general popup element class