Dispatch event on page load