new base CGI class for popups