adding event 'load' listener for weave window.