Remove the popup and close new tab after task