Split row changing code to _update_row method