implemented cards restoring