Made 'resubmit all' button work