fixed bugs to views Cards, Decks; cleared code