changed url from mock data to real data from rest