added card controller methods and views