fixes to card viewer