using onload instead to see if that works