add event callback to wrapper