refactor card view
refactor parse backend code for consistency