Build data for presentation and added class and id for links