fix another bug: the id for the row was not set for new rows added by ajax