update table format and add edit link.