added support for detail view