added fetching method from api and displaying in view