set index demo page onload event