Fixed newtab problems and closed tabs issue for a single active url