How to redirect the popup to the main page if the user clicks No Thanks?