make card select working