added interactive popup handling