added 'loaded' event