Add event callbacks to custimize.