changed onload and onenable