added callback function

added callback function when the loading is finished
Merge pull request #6 from morgan134/master

added callback function