index: listen for the "finish" event