added card class and view (not finished) to dir