making it window onload