moved emition of item-added-event to different place