Refactor to split out card view.