updated DataCards Code