using Onload instead of Load to add listner