added loadstart callback for window