added display of links and sorting