Update before submission