fix the ids used in js event hundlers
add an action for when upload is done