Added callback when popup is dismissed.
Merge pull request #31 from simonbs/master

Added callback when popup is dismissed