added card directive and styles