added class based generic detail view