replace mock data in UI with real data from api resource