functionality to add new cards now working