fixed event trigger for add functionality
Merge pull request #4 from glhuang/fix-add-item-functionality

fixed event trigger for add functionality