refactor card link