making link to the records