lastRow nd rowIndex variable for adding correct fieldName
javascript func. to add/delete fieldname edited