Added onload window event