using new popup api