some performance improvements on the detailview