fixing issue with adding new rows