updated card JPA model to cascade changes to dependencies.
reduced some html redundancy.