remove onload event after use