Back to previous tab when click on Cancel
Preserve all URLs when one of them is invalid