* modify event 'input' to 'data'
+ add event 'end'