added detention counts to view