display more information in detail view, including links; remove unused code; clean up some code in other ways