Some work for the activity detail view