- replaced the URL by a fake one
- properly close the popup