Handling reopening tabs from url