added in some logging
Added DetailMixin.