now only closing if tabs are still on the same domain
merged