added empty core data method and started using core data in card view controller