add: callback when dismissing PopupViewController;