Onload sizing function changes