Added method of main controller - dataModelToCard