Function which update row has been added.