fixed detail view export functionality