Replacing unecessary code to update form record