added init into body onload