added body onload function