Added a callback to load event