bugfix: resize only when url not the same; refactoring in tabs