Use new scope each time a popup is opened