Trying window load event for resizing