editRecord and updateRecord