add updateRow method in spreadsheet.py