added updates to detail page, fixed tests