fixing the link to details for ALL the views, additional error handling