fix bugs and add server link to records