refactor link data retrieval and display