Added new resizing logic to web end also