fixed event trigger for add functionality