add customizable addition event handler