changed load to addEventListner