add callback for file add event