add elements to detail view