fixed old style popwin initialize code to new style