refactor controller from collections to cards and start using friendly id