add ability to define a class that closes popup but continues with default action