Pop up Box during refresh and closing the tab or browser by mistake