modified logic for showing card images or just words
keyup function doesn't work more than once possibly because of id skipping