adding afterAppendRowCallback