slight refactor of add card button