resolving browser resize issue