Refactored adapter to use view_for_each_trend