update event handling for upload chunks
change order
expand event handling in models
refactor