refactors PinsIndex view to store rendered CardViews in an array