adding flip card feature