changed handling of urls for tabs