migrating controller into card manager