Attaching the list of years returned from REST api to the list view.