Updating html width and height